package com.photoeditor.demo.ui.widget.image.edit;

import com.photoeditor.R;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/9/4 0004.
 */

public class CropBeanManager {


    public static List<CropBean> sCropBeanList = new ArrayList<>();

    public static List<CropBean> getCropBeanList() {
        if (sCropBeanList.size() == 0) {
            sCropBeanList.add(new CropBean(R.drawable.ic_crop_custom, "Custom"));
            sCropBeanList.add(new CropBean(R.drawable.ic_crop_ig_1_1, "1:1"));
            sCropBeanList.add(new CropBean(R.drawable.ic_crop_ig_4_5, "4:5"));
            sCropBeanList.add(new CropBean(R.drawable.ic_crop_fb_4_3, "4:3"));
            sCropBeanList.add(new CropBean(R.drawable.ic_crop_twi_2_1, "2:1"));
            sCropBeanList.add(new CropBean(R.drawable.ic_crop_pin_2_3, "2:3"));
            sCropBeanList.add(new CropBean(R.drawable.ic_crop_fb_820_312_cover, "Cover"));
            sCropBeanList.add(new CropBean(R.drawable.ic_crop_youtobe_16_9, "16:9"));
            sCropBeanList.add(new CropBean(R.drawable.ic_crop_9_16, "9:16"));
            sCropBeanList.add(new CropBean(R.drawable.ic_crop_3_4, "3:4"));
        }
        return sCropBeanList;
    }

    public static class CropBean {

        private int resId;

        private String ratio;

        public CropBean(int resId, String ratio) {
            this.resId = resId;
            this.ratio = ratio;
        }

        public int getResId() {
            return resId;
        }

        public String getRatio() {
            return ratio;
        }

        public void setResId(int resId) {
            this.resId = resId;
        }

        public void setRatio(String ratio) {
            this.ratio = ratio;
        }
    }
}
